package com.example.minefieldkeepercloud.base;


import android.content.Context;
import android.os.Build;
import android.os.StrictMode;
import android.support.multidex.MultiDexApplication;

import com.example.minefieldkeepercloud.util.SPUtilHelper;

/**
 * Created by Administrator on 2017/4/21.
 * 整个项目的通用的Application
 */

public class BaseApplication extends MultiDexApplication {

    public static Context context;//定义一个静态的全局变量
    public static final String IPADRESS="47.104.138.13";
    public static final int PORT=801;
    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        SPUtilHelper.getInstance(getApplicationContext());

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
            StrictMode.setVmPolicy(builder.build());
        }

//
//        if (spUtil.getInt(BaseApplication.MONEYKIND, 0) == 0) {
//            spUtil.putInt(BaseApplication.MONEYKIND, 1);
//        }


    }


}
